Reorder BEC reference values to match predicted BECs during training#1469
Merged
brucefan1983 merged 1 commit intobrucefan1983:masterfrom Apr 27, 2026
Merged
Reorder BEC reference values to match predicted BECs during training#1469brucefan1983 merged 1 commit intobrucefan1983:masterfrom
brucefan1983 merged 1 commit intobrucefan1983:masterfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fix #1468
Specifically, in the qNEP, the BEC-related reference values were not reordered together with the structures. As a result, during non-full-batch training, the reference BEC values could become mismatched with the predicted BEC values in
bec_train.out. This issue could also affect the BEC-related part of the training process itself.Modification
Updated the
reorder()logic insrc/main_nep/structure.cuAdded reordering for the BEC-related reference data so that it remains consistent with the reordered structures
Validation
After the fix, the BEC fitting accuracy is improved. The potential energy surface fitting accuracy shows no obvious change.